VtLabel object_name [options]
Creates a Label. Returns the widget name.
All the Label class options are available.
The following code produces a label positioned in the center of a FormDialog. The label is attached to the right and bottom sides of the FormDialog so that the label remains centered after resizing.
set app [VtOpen demo] set form [VtFormDialog $app.fn -title "VtLabel Demo" ] VtLabel $form.lab \ -label "Kumquats" \ -labelCenter \ -rightSide FORM \ -bottomSide FORM VtShow $form VtMainLoop
This code produces the following:
See also: